package service.region;

import java.util.List;

import vo.RegionVO;
import dao.region.RegionDAO;

public class RegionServiceImpl implements RegionService{

	private RegionDAO regionDAO;

	public void setRegionDAO(RegionDAO regionDAO) {
		this.regionDAO = regionDAO;
	}

	@Override
	public List<RegionVO> getRegionList() throws Exception {
		return regionDAO.getRegionList();
	}

	@Override
	public void registerRegion(String region_name) throws Exception {
		regionDAO.registerRegion(region_name);
	}

	@Override
	public void updateRegion(RegionVO param) throws Exception {
		regionDAO.updateRegion(param);
	}

	@Override
	public void deleteRegion(int region_no) throws Exception {
		regionDAO.deleteRegion(region_no);
	}
}
